abbcbdbd250e301d4400560e2ea9e1706cf68c68,patching/src/main/java/org/jboss/as/patching/runner/PatchingTaskRunner.java,PatchingTaskRunner,rollback,#String#boolean#,261
Before Change
}
} else {
// TODO perhaps we can allow this as well?
PatchLogger.ROOT_LOGGER.cannotRollbackPatch(patchId);
return new FailedResult(patchId, patchInfo);
}
}
After Change
final int index = patchInfo.getPatchIDs().indexOf(patchId);
if(index == -1 ) {
if(!patchInfo.getCumulativeID().equals(patchId)) {
throw PatchMessages.MESSAGES.cannotRollbackPatch(patchId);
}
}